<?php
/**
 * Description: app 嵌入的webview
 * Author: hezhizheng
 * Date: 2018/5/17
 * Time: 15:20
 * Created by Created by Panxsoft.
 */
use Illuminate\Support\Facades\Route;

/**
 * @see \App\Http\Controllers\App\HairAssetController::getHairAsset()
 */
Route::get('/hair-asset', 'HairAssetController@getHairAsset');  // 获取2.5d的素材文件

/**
 * app端 红包促销
 *
 * @see \App\Http\Controllers\App\WebView\BonusRankingController
 */
Route::resource('/bonus', 'WebView\BonusRankingController')
    ->names(\App\Http\Controllers\App\WebView\BonusRankingController::ROUTES);

/**
 * 微信端，查看自己领用红包记录
 *
 * @see \App\Http\Controllers\App\WebView\BonusRankingController::queryWechatUserBonuses
 */
Route::get('/query-wechat-user-bonuses/{openid}', 'WebView\BonusRankingController@queryWechatUserBonuses')
    ->name(\App\Http\Controllers\App\WebView\BonusRankingController::ROUTES['query']);